<?php
/**
 * Created by PhpStorm.
 * User: zyark
 * Date: 2018/5/2
 * Time: 10:08
 */

namespace app\admin\controller;


use app\common\controller\Backend;

class Adminpublic extends Backend
{
    /**
     * 根据父类别获取子类别列表
     * @return \think\response\Json
     */
    public function ajax_category_list(){
        $parent_id = $this->request->param('parent_id');
        $list = model('Category')->where(array('parent_id'=>$parent_id))->where(array('is_delete'=>0))->select();
        return json($list);
    }
}